//
//  MXUtility.h
//  MoXiProject
//
//  Created by 周筱雯 on 2017/5/27.
//  Copyright © 2017年 周筱雯. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface MXUtility : NSObject



/**
 *提示框,Tim添加
 */
+ (void)showTips:(NSString *)tips;

/**
 table cell
 */
+ (void)setExtraCellLineHidde:(UITableView *)tableView tabHeader:(BOOL) header tabFooter:(BOOL) footer;

/**
 获取IP地址
 
 @return <#return value description#>
 */
+ (NSString *)getIPAddress;


/**
 检测手机号
 
 @param mobileNum <#mobileNum description#>
 @return <#return value description#>
 */
+ (BOOL)validateMobile:(NSString *)mobileNum;


/**
 判断密码
 
 @param _text <#_text description#>
 @return <#return value description#>
 */
+(BOOL)CheckInput:(NSString *)_text;


/**
 限制特殊字符不能输入
 
 @param stringText <#stringText description#>
 @return <#return value description#>
 */
+(int) XZInputText:(NSString *) stringText;

/**
 判断非空
 
 @param string <#string description#>
 @return <#return value description#>
 */
+(NSString *)NSNULLString:(NSString *)string;

/**
 MD5加密
 
 @param inPutText <#inPutText description#>
 @return <#return value description#>
 */
+(NSString *) md5: (NSString *) inPutText;


/**
 风火轮加载
 
 @param _targetView <#_targetView description#>
 @param _msg <#_msg description#>
 */
+ (void)showMBProgress:(UIView *)_targetView message:(NSString *)_msg;


/**
 隐藏风火轮
 
 @param _targetView <#_targetView description#>
 */
+ (void)hideMBProgress:(UIView*)_targetView;


/**
 时间转换
 
 @param strTimestamp <#strTimestamp description#>
 @param strDateFormat <#strDateFormat description#>
 @return <#return value description#>
 */
+ (NSString *)getTimeWithTimestamp:(NSString *)strTimestamp WithDateFormat:(NSString *)strDateFormat;

/**
 字体大小
 
 @param textColor <#textColor description#>
 @param anFont <#anFont description#>
 @param unFont <#unFont description#>
 @param amount <#amount description#>
 @param unit <#unit description#>
 @return <#return value description#>
 */
+ (NSAttributedString *)getAmountWithColor:(UIColor *)textColor
                                 amoutFont:(UIFont *) anFont
                                  unitFont:(UIFont *) unFont
                                    amount:(NSString *)amount
                                      unit:(NSString *)unit;
/**
 绘制view上 上边框
 
 @param view <#view description#>
 @param color <#color description#>
 */
+(void) topLayerborder:(UIView *) view borderColor:(UIColor *) color;


/**
 绘制view下 下边框
 
 @param view <#view description#>
 @param color <#color description#>
 */
+(void) bottomLayerborder:(UIView *) view borderColor:(UIColor *) color;


/**
 绘制view左 左边框
 
 @param view <#view description#>
 @param color <#color description#>
 */
+(void)leftLayerborder:(UIView *)view borderColor:(UIColor *) color;

/**
 绘制view右 右边框
 
 @param view <#view description#>
 @param color <#color description#>
 */
+(void)rightLayerborder:(UIView *)view borderColor:(UIColor *) color;


/**
 身份证号码验证

 @param identityCard <#identityCard description#>
 @return <#return value description#>
 */
+(BOOL)judgeIdentityCardNo:(NSString*)identityCard;
@end
